import { http } from '@/utils/http'
// 引入ts类型
import type { searchBodyDataType } from '@/types/search'

enum API {
  SEARCHALLAPI = '/search/all',
}

// 搜索商品的接口
export const getSearchAPI = (data: searchBodyDataType) => {
  return http({
    method: 'POST',
    data,
    url: API.SEARCHALLAPI,
  })
}
